﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using System.Reflection;
using IDAL;

namespace DALFactory
{
    public class UserDALFactory
    {
        public static IUserDAL CreatInstance(String configKey)
        {
            return (IUserDAL)Assembly.Load("SQLServerDAL").CreateInstance(ConfigurationManager.AppSettings[configKey]);
        }
    }
}
